<?php
  $action = $_REQUEST["action"];
  $requestArray = array(
                 "lan_id"   => "l".$dbUtilObj->getTableCounter(LANMASTER),
                 "lan_name"  => $_REQUEST[lan_name], 
				 "lan_desc"  => $_REQUEST[lan_desc],
				 "lan_short" => $_REQUEST[lan_short]
				);
  if ($action == "addNew")
     $dbUtilObj -> dynamicInsert($requestArray,LANMASTER);

  if ($action == "delete")
     $dbUtilObj -> dynamicDelete($_REQUEST[id],LANMASTER);	
	 
  if ($action == "update")
  {
     $excludeFields = "lan_id";
     $dbUtilObj -> dynamicUpdate($requestArray,LANMASTER,$_REQUEST[id],$excludeFields);	
  }
	 
  $pageId=2;
?>